<div id="activityjoin" style="display:none">
<form name="activityapply" id="activityapply" method="post" autocomplete="off" action="plugin.php?id=donkey_activity:apply" >
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="handlekey" value="activityapply" />
<input type="hidden" name="operation" value="activityapply">
<input type="hidden" name="tid" value="$tid">
<input type="hidden" name="activityapply" value="yes">
<div class="c">
	<!--{if $_G['setting']['activitycredit'] && $activity['credit'] && !$applied}--><p class="xi1">{lang activity_need_credit} $activity[credit] {$_G['setting']['extcredits'][$_G['setting']['activitycredit']][title]}</p><!--{/if}-->
	<table summary="活动报名" cellpadding="0" cellspacing="0" class="actl">
	<!--{if $activity['cost']}-->
		<tr>
			<th>{lang activity_paytype}</th>
			<td>
				<p class="mbn"><label for="payment_0"><input class="pr" type="radio" value="0" name="payment" id="payment_0" checked="checked" />{lang activity_pay_myself}</label></p>
				<p><label for="payment_1"><input type="radio" name="payment" id="payment_1" class="pr" value="1" />{lang activity_would_payment}</label> <input name="payvalue"class="px pxs vm" size="3" onfocus="$('payment_1').checked = true;" /> {lang payment_unit}</p>
			</td>
		</tr>
	<!--{/if}-->
	<!--{if !empty($activity['ufield']['userfield'])}-->
		<!--{loop $activity['ufield']['userfield'] $fieldid}-->
		<!--{if $settings[$fieldid][available]}-->
			<tr>
				<th id="th_$fieldid"><strong class="rq y">*</strong>$settings[$fieldid][title]</th>
				<td id="td_$fieldid">$htmls[$fieldid]</td>
			</tr>
		<!--{/if}-->
		<!--{/loop}-->
	<!--{/if}-->
	<!--{if !empty($activity['ufield']['extfield'])}-->
		<!--{loop $activity['ufield']['extfield'] $extname}-->
			<tr>
				<th>$extname</th>
				<td><input type="text" name="$extname" maxlength="200" class="px" value="{if !empty($ufielddata)}$ufielddata[extfield][$extname]{/if}" /></td>
			</tr>
		<!--{/loop}-->
	<!--{/if}-->
		<tr>
			<th>留言</th>
			<td><textarea name="message" maxlength="200" cols="38" class="pt">$applyinfo[message]</textarea></td>
		</tr>
	</table>
</div>
<div class="o pns">
	<!--{if $_G['setting']['activitycredit'] && $activity['credit'] && checklowerlimit(array('extcredits'.$_G['setting']['activitycredit'] => '-'.$activity['credit']), $_G['uid'], 1, 0, 1) !== true}-->
		<p class="xi1">{$_G['setting']['extcredits'][$_G['setting']['activitycredit']][title]} {lang not_enough}$activity['credit']</p>
	<!--{else}-->
		<input type="hidden" name="activitysubmit" value="true">
		<em class="xi1" id="return_activityapplies"></em>
		<button type="submit" class="pn pnc"><span>{lang submit}</span></button>
	<!--{/if}-->
</div>
</form>
</div>